package com.time.gateway.constants;

/**
 * 网关服务常量类
 *
 * @author: HuangQi
 * @date: Created in 17:03 2025/8/27
 * @description: 网关服务常量类
 */
public class GatewayConstant {

    /**
     * 权限前缀
     */
    public static final String AUTH_PERMISSION_PREFIX = "auth.permission";

    /**
     * 角色前缀
     */
    public static final String AUTH_ROLE_PREFIX = "auth.role";

    public static final int SUCCESS = 200;

    /**
     * 错误码-用户无权限
     */
    public static final int UNAUTHORIZED  = 401;

    /**
     * 错误码-系统繁忙
     */
    public static final int SERVER_ERROR = 500;

    /**
     * 错误信息-用户无权限
     */
    public static final String MSG_UNAUTHORIZED = "用户无权限";

    /**
     * 错误信息-系统繁忙
     */
    public static final String MSG_SERVER_ERROR = "系统繁忙";

    /**
     * 错误信息-用户未登录
     */
    public static final String MSG_NOT_LOGIN = "未登录，请先登录";

    /**
     * 登录路径
     */
    public static final String LOGIN_PATH = "/auth/login";

    public static final String LOGIN_HEADER = "loginId";

}
